package com.miyake.client.datamanage;

import java.util.ArrayList;
import java.util.List;

import com.google.gwt.user.client.rpc.IsSerializable;

public class PlotData implements IsSerializable {
	public static final int PLOT_LINE = 1;
	public static final int PLOT_DOT = 2;
	
	public static final int DATA_Y = 1;
	public static final int DATA_XY = 2;
	
	private String key;
	private Integer plotType;
	private Integer dataType;
	private String nodeKey;
	private Double[] x;
	private Double[] y;
//	private String url;
	private Double xmin;
	private Double xmax;
	private Double ymin;
	private Double ymax;
	private List<String> overlays = new ArrayList<String>();
	
	public PlotData() {
	}
	
	public PlotData(String key, Integer dataType, Integer plotType, String nodeKey) {
		super();
		this.key = key;
		this.dataType = dataType;
		this.plotType = plotType;
		this.nodeKey = nodeKey;
	}

	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}

	public Integer getPlotType() {
		return plotType;
	}

	public void setPlotType(Integer plotType) {
		this.plotType = plotType;
	}

	public Integer getDataType() {
		return dataType;
	}

	public void setDataType(Integer dataType) {
		this.dataType = dataType;
	}

	public String getNodeKey() {
		return nodeKey;
	}

	public void setNodeKey(String nodeKey) {
		this.nodeKey = nodeKey;
	}

	public Double[] getX() {
		return x;
	}

	public void setX(Double[] x) {
		this.x = x;
	}

	public Double[] getY() {
		return y;
	}

	public void setY(Double[] y) {
		this.y = y;
	}
/*
	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}
*/
	public Double getXmin() {
		return xmin;
	}

	public void setXmin(Double xmin) {
		this.xmin = xmin;
	}

	public Double getXmax() {
		return xmax;
	}

	public void setXmax(Double xmax) {
		this.xmax = xmax;
	}

	public void setYmin(Double ymin) {
		this.ymin = ymin;
	}

	public void setYmax(Double ymax) {
		this.ymax = ymax;
	}

	public List<String> getOverlays() {
		return overlays;
	}

	public void setOverlays(List<String> overlays) {
		this.overlays = overlays;
	}

	public Double getYmin() {
		return ymin;
	}

	public Double getYmax() {
		return ymax;
	}

	
}
